← Back to issue list

source-depth should propagate to git submodules

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1965792
Type
issue
State
open
Author
~itrue
Labels
Created
2022-03-21 16:33:01.255103+00:00
Updated
2022-03-21 16:33:01.255103+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Currently, specifying "source-depth: 1" only does a shallow checkout of the root repository. If there are any submodules, the entire submodule history is checked out. In a repository consisting largely of submodues (e.g. https://github.com/qt/qt5) this massively impacts the build time. Proposition: if "source-depth" is specified, "--depth" should also be added to the "git submodule update" command.

Evaluation history

No evaluation history available.